<!DOCTYPE>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__PUBLIC__/Home/css/user_center.css">
    <script type="text/javascript" src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Common/Layer/layer.js"></script>
    <title>我的足迹</title>
    <script>
        function del(a){
          
            $.ajax({
               type: "POST",
               url: "{:U('User/del')}",
               data: "id="+a,
               success: function(msg){
                 if(msg==1){
                        parent.layer.msg('操作成功', { icon: 1, time: 1000 },function(){
                        window.location.href="__SELF__";
                    });
                 }else{
                        parent.layer.msg('操作失败', {icon: 2, time: 2000 }); 
                 }
               }
            });
        }
    </script>
</head>

<body>
<!-- 栏目 -->
<include file="Public:header_center" />

<!-- 内容 -->
<style>
    .col_detail{
        width: 250px;
        height:260px;
        border: 1px solid #CCCCCC;
        margin: 10px 5px;
        float: left;
    }

    .col_detail ul {
        width: 240px;
        margin: 5px auto;
    }
</style>
<div style="background-color:#f5f5f5;">
    <div class="content" style="width:1200px;">
        <include file="Public:left_center" />
        <div class="center-right right">
            <h3 class="title">我的足迹 ( 仅保留7日内数据 )</h3>
            <div class="Options" style=" width:1050px; background-color:#FFF; padding:20px;">
                <div id="content"  style="overflow: hidden;zoom: 1">
                    <foreach name="list" item="vo">
                    <div class="col_detail">
                        <ul>
                            <li><a target="_blank" href="{:U('Index/goods_details',array('id'=>$vo['gid']))}"><img src="__PUBLIC__/Uploads/goods/{$vo.goods_pic}" alt="" style="width: 250px; height: 200px;"></a></li>
                            <li style="line-height: 25px;" title="{$vo.goods_name}">{$vo.goods_name1}</li>
                            <li>价格：<span>{$vo.goods_price} </span><span  style="color: #FFAA25;margin-left:120px;font-weight: bold"><a href="javascript:;" onclick="del({$vo.id})">删除</a></span></li>
                        </ul>
                    </div>
                    </foreach>
                    </div>
                    {$page}
                </div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <include file="Public:footer_center" />
</body>
</html>
